Cytosim  PI
Cytoskeleton Simulator
Node Class Reference

Detailed Description

This provides the necessary pointers to build doubly-linked lists:

  • nNext points to the next Node, and is null if *this is first in the list.
  • nPrev points to the previous Node, and is null if *this is last in the list.
  • nList is a back pointer to the current NodeList.

A given Node can only be part of one NodeList. One can unlink the object with

obj->list()->pop(obj);
Inheritance diagram for Node:
FiberBinder Object Hand Couple FieldBase< VAL > Mecable Organizer Single Space Actor Cutter Mighty Motor Nucleator Rescuer Slider Tracker Bridge CoupleLong Crosslink Fork Shackle Bead PointSet Aster Bundle Fake Nucleus Picket Wrist SpaceCapsule SpaceCylinder SpaceCylinderP SpaceCylinderZ SpaceDice SpaceEllipse SpacePeriodic SpacePolygon SpaceSphere SpaceSquare SpaceStrip SpaceTorus

Public Member Functions

 Node ()
 constructor set as unlinked
 
virtual ~Node ()
 destructor More...
 
bool linked () const
 true if Node is linked
 
Nodenext () const
 the next Node in the list, or zero if this is last
 
Nodeprev () const
 the previous Node in the list, or zero if this is first
 
NodeListlist () const
 the list where the object is linked, or zero
 
ObjectSetobjset () const
 return associated ObjectSet
 

Protected Attributes

NodenNext
 the next Node in the list
 
NodenPrev
 the previous Node in the list
 

Friends

class NodeList
 

Constructor & Destructor Documentation

~Node ( )
virtual

the Node should have been unlinked first